package com.caipu.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author admin
 * @since 2020-01-22
 */
@Data
@TableName("t_user_info")
public class UserInfo implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("open_id")
    private String openId;

    @TableField("session_key")
    private String sessionKey;

    /**
     * 用户昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 用户头像
     */
    @TableField("avatar_url")
    private String avatarUrl;

    /**
     * 0:女 1:男
     */
    @TableField("sex")
    private Integer sex;

    /**
     * 余额
     */
    @TableField("balance")
    private Double balance;

    /**
     * 优惠卷
     */
    @TableField("coupon")
    private Integer coupon;

    /**
     * 手机号
     */
    @TableField("telephone")
    private String telephone;

    /**
     * 创建日期
     */
    @TableField("creat_time")
    private String creatTime;
}
